import request from '@/utils/request'

export function TaskArrApi(data) {
  return request({
    url: '/api/tasks/',
    method: 'post',
    data
  })
}

export function AddProjectApi(data) {
  return request({
    url: '/api/project/add/',
    method: 'post',
    data
  })
}

export function EditProjectApi(data) {
  return request({
    url: '/api/project/edit/',
    method: 'post',
    data
  })
}

export function ArrProjectApi(data) {
  return request({
    url: '/api/project/lis/',
    method: 'post',
    data
  })
}


export function DeleteProjectApi(data) {
  return request({
    url: '/api/project/del/',
    method: 'post',
    data
  })
}


export function AddTaskApi(data) {
  return request({
    url: '/api/task/add/',
    method: 'post',
    data
  })
}

export function EditTaskApi(data) {
  return request({
    url: '/api/task/edit/',
    method: 'post',
    data
  })
}

export function ArrTaskApi(data) {
  return request({
    url: '/api/task/lis/',
    method: 'post',
    data
  })
}


export function DeleteTaskApi(data) {
  return request({
    url: '/api/task/del/',
    method: 'post',
    data
  })
}

export function RunScriptApi(data) {
  return request({
    url: '/api/task/run_script/',
    method: 'post',
    data
  })
}

export function StopScriptApi(data) {
  return request({
    url: '/api/task/stop_script/',
    method: 'post',
    data
  })
}
